<?php

class Admin_Form_CraftAdd extends Zend_Dojo_Form
{
    public function init()
    {    	
        $this->setName("CraftAdd");
        $this->setMethod('post');
        $this->setOptions(array('onSubmit'=>"return(validateForm(this))"));
        
        $id = new Zend_Form_Element_Hidden('id');
        $id->addFilter('Int');
        
        $this->addElement('ValidationTextBox', 'description',array(        
	        'label'          => 'Descrição: ',
         	'focus'          => true,
	        'required'       => true,
	        'invalidMessage' => 'Descrição inválido',
        	'style'      	 => 'width: 400px;',
        ));
        
        
		$this->addDisplayGroup(array('description'), 'basicos', array('legend'=>"Dados básicos")); 
        
        //----------------------------------------------------------------------------------
        
        $this->addElement('SubmitButton', 'insert', array(
            'label'    => 'Salvar',
	        'required' => true,
	        'ignore' => false,
        ));

    }
}

